home *** CD-ROM | disk | FTP | other *** search
Makefile | 1993-12-30 | 4.0 KB | 159 lines |
-
- #
- # Makefile for the iritfltr subdirectory (IRIT solid modeller).
- #
-
- #-----
- #
- # The XXX_DIR variables below MUST have ABSOLUTE path. Since this file
- # is sourced from several directories relative path specification will
- # be simple wrong.
- #
-
- SRC_DIR = Work:T/Irit
- #
- # All libraries created will be installed into the LIB_DIR directory.
- #
- LIB_DIR = $(SRC_DIR)/lib
-
- #
- # All includes files associated with the installed libraries will be
- # installed into the INC_DIR directory.
- #
- INC_DIR = $(SRC_DIR)/inc
-
- #
- # All binaries created will be installed into the BIN_DIR directory.
- #
- BIN_DIR = $(SRC_DIR)/bin
-
- #
- # Uncomment the correct set of variables to be used or modify it for
- # your system.
- #
- # -D flags:
- #
- # -D__GL__ - if your system supports gl graphics library (SGI 4d & IBM R6000).
- #
- # -D__X11__ - if your system supports X11. Only one of __GL__ or __X11__ should
- # be used.
- #
- # Emulation to the following function are available by defining the
- # following. Look at misc_lib/xgeneral.c/h for implementation.
- # -DGETCWD - if getcwd is not defined in this system.
- # -DSTRSTR - if strstr is not defined in this system.
- # -DSTRDUP - if strdup is not defined in this system.
- # -DSTRICMP - if stricmp and strincmp are not defined in this system.
- #
- # -DTIMES - if times is defined in your system, otherwise uses time.
- #
- # -DRAND - if the (s)rand random number generator exists.
- # -DRAND48 - ?rand48 random number generators exists.
- # If non of RAND or RAND48 are defined, (s)random is used.
- #
- # -DNO_VOID_PTR - if your C compiler does not support (void *).
- #
- # -DUSE_VARARGS - if your system does not have stdarg.h and have the old
- # varargs.h.
- #
- # -DNO_CONCAT_STR - if 'char *p = "This is" "one string";' is illegal.
- #
- # -DGRAPDRVS - any combination of of 'amidrvs', 'nuldrvs'.
- #
- # Other, possibly useful defines (for c code development):
- #
- # -DDEBUG - for some debugging functions in the code (that can be invoked
- # from a debugger).
- #
-
- #
- # Flags for Amiga using gcc
- #
- CC = gcc
- DFLAGS = -Dmain=mymain -DTIMES
- CFLAGS = $(DFLAGS) -m68040 -m68881
- MORELIBS = $(LIB_DIR)/libamg.a
- GRAPDRVS = nuldrvs amidrvs
-
- #
- # Default rule for compilation.
- #
- .c.o:
- $(CC) $(CFLAGS) -I. -I$(INC_DIR) -c $<
-
- #
- # All libraries.
- LIBS = -L$(LIB_DIR) -lgeom -lprsr -lcagd -lmisc #-lgif
- #-----
-
- ALL_EXE = irit2ray irit2ps irit2xfg irit2nff dat2irit dxf2irit irit2dxf \
- irit2scn irit2plg skeletn1
-
- all: $(ALL_EXE)
-
-
- IRIT2RAY_OBJS = irit2ray.o ffcnvrt.o
-
- IRIT2PS_OBJS = irit2ps.o ffcnvrt.o
-
- IRIT2XFG_OBJS = irit2xfg.o ffcnvrt.o
-
- IRIT2NFF_OBJS = irit2nff.o ffcnvrt.o
-
- DAT2IRIT_OBJS = dat2irit.o ffcnvrt.o
-
- DXF2IRIT_OBJS = dxf2irit.o ffcnvrt.o
-
- IRIT2DXF_OBJS = irit2dxf.o ffcnvrt.o
-
- IRIT2SCN_OBJS = irit2scn.o ffcnvrt.o
-
- IRIT2PLG_OBJS = irit2plg.o ffcnvrt.o
-
- SKELETN1_OBJS = skeletn1.o ffcnvrt.o
-
- irit2ray: $(IRIT2RAY_OBJS)
- $(CC) $(CFLAGS) -s -o irit2ray $(IRIT2RAY_OBJS) $(LIBS) $(MORELIBS) -lm
-
- irit2ps: $(IRIT2PS_OBJS)
- $(CC) $(CFLAGS) -s -o irit2ps $(IRIT2PS_OBJS) $(LIBS) $(MORELIBS) -lm
-
- irit2xfg: $(IRIT2XFG_OBJS)
- $(CC) $(CFLAGS) -s -o irit2xfg $(IRIT2XFG_OBJS) $(LIBS) $(MORELIBS) -lm
-
- irit2nff: $(IRIT2NFF_OBJS)
- $(CC) $(CFLAGS) -s -o irit2nff $(IRIT2NFF_OBJS) $(LIBS) $(MORELIBS) -lm
-
- dat2irit: $(DAT2IRIT_OBJS)
- $(CC) $(CFLAGS) -s -o dat2irit $(DAT2IRIT_OBJS) $(LIBS) $(MORELIBS) -lm
-
- dxf2irit: $(DXF2IRIT_OBJS)
- $(CC) $(CFLAGS) -s -o dxf2irit $(DXF2IRIT_OBJS) $(LIBS) $(MORELIBS) -lm
-
- irit2dxf: $(IRIT2DXF_OBJS)
- $(CC) $(CFLAGS) -s -o irit2dxf $(IRIT2DXF_OBJS) $(LIBS) $(MORELIBS) -lm
-
- irit2scn: $(IRIT2SCN_OBJS)
- $(CC) $(CFLAGS) -s -o irit2scn $(IRIT2SCN_OBJS) $(LIBS) $(MORELIBS) -lm
-
- irit2plg: $(IRIT2PLG_OBJS)
- $(CC) $(CFLAGS) -s -o irit2plg $(IRIT2PLG_OBJS) $(LIBS) $(MORELIBS) -lm
-
- skeletn1: $(SKELETN1_OBJS)
- $(CC) $(CFLAGS) -s -o skeletn1 $(SKELETN1_OBJS) $(LIBS) $(MORELIBS) -lm
-
- install: all
- Copy $(ALL_EXE) $(BIN_DIR)
- Delete $(ALL_EXE)
-
- # Dependencies starts here - do not touch, generated automatically.
- ffcnvrt.o: ffcnvrt.h
- irit2dxf.o: ffcnvrt.h
- irit2nff.o: ffcnvrt.h
- irit2plg.o: ffcnvrt.h
- irit2ps.o: ffcnvrt.h
- irit2ray.o: ffcnvrt.h
- irit2scn.o: ffcnvrt.h
- irit2xfg.o: ffcnvrt.h
- skeletn1.o: ffcnvrt.h
-